package com.ruoyi.mall.front.controller;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.mall.front.vo.MallMembersVo;
import com.ruoyi.mall.service.IMallMembersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName FrontMemberController
 * @Description: 前端会员控制器
 * @Author cjc
 * @Date 2020/5/15
 * @Version V1.0
 **/
@RestController
@RequestMapping("mall/front/members")
public class FrontMemberController {
    @Autowired
    private IMallMembersService mallMembersService;
    @PostMapping("editMember")
    public AjaxResult editMember(@RequestBody MallMembersVo membersVo){
        if(null == membersVo.getPhone() || "".equals(membersVo.getPhone())){

        }
        return mallMembersService.editMember(membersVo);
    }
}
